package com.louis.resource.service.impl;

import com.louis.resource.service.UserService;
import jakarta.annotation.Resource;
import com.louis.resource.dao.UserDao;
import org.springframework.stereotype.Service;

/**
 * @author XRY
 * @date 2023年06月25日11:13
 */
@Service("myUserService")
public class UserServiceImpl implements UserService {

    //不指定名称，根据属性名称进行注入
    @Resource
    private UserDao myUserDao;
    @Override
    public void show() {
        System.out.println("Service.........");
        myUserDao.check();
    }
}
